//
//  WCNServiceTimePageVC.m
//  WCN
//
//  Created by wsj2015 on 15/12/14.
//  Copyright © 2015年 ShanghaiCize Trade And Business Co., Ltd. All rights reserved.
//

#import "WCNServiceTimePageVC.h"
#import "WCNEffectServiceTimeVC.h"
#import "WCNTemplateListVC.h"
#import "WSJAnimationTool.h"

@interface WCNServiceTimePageVC ()<UITableViewDelegate,UITableViewDataSource>
@property (weak, nonatomic) IBOutlet UITableView *tableView;

@end

@implementation WCNServiceTimePageVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.title = @"服务时间设置";
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 2;
 
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *cellId =@"serviceTimePageCellId";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
    if (nil == cell) {
        cell =[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellId];
        cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    }
    if (indexPath.row == 0) {
        cell.textLabel.text = @"当前生效时间";
        
    }else{
         cell.textLabel.text = @"时间模板列表";
    
    }
    return cell;

}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    
    return 64;


}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    if (indexPath.row == 0) {
        WCNEffectServiceTimeVC *vc =[[WCNEffectServiceTimeVC alloc] init];
        
        [self.navigationController pushViewController:vc animated:YES];
    }else{
        WCNTemplateListVC *vc =[[WCNTemplateListVC alloc] init];
        
        [self.navigationController pushViewController:vc animated:YES];
    
    }
 
}

@end
